<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"><button @click="add">+1</button>{{count}}</div>
    <script src="../lib/vue.global.js"></script>
    <script>
      const app = createApp({
        setup() {
          const count = ref(0);
          onbeforeMount(() => {
            console.log("onbeforeMount");
          });
          onmounted(() => {
            console.log("onmounted");
          });
          onbeforeUpudate(() => {
            console.log("onbeforeUpudate");
          });
          onupdated(() => {
            console.log("onupdated");
          });
          onbeforeUnmount(() => {
            console.log("onbeforeUnmount");
          });
          onunmounted(() => {
            console.log("onunmounted");
          });
        },
      });

      app.mount("#app");
    </script>
  </body>
</html>
